#ifndef UDPCONFIGDIALOG_H
#define UDPCONFIGDIALOG_H

#include <QDialog>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>

class UDPConfigDialog : public QDialog
{
    Q_OBJECT
public:
    UDPConfigDialog(QString ip, int port, QWidget *parent=0);
    void initUI();
    void getData(QMap<QString, QString> &config);
    QString getIP();
    QLineEdit *ipEdit;
    QLineEdit *portEdit;

private:
    QString ip;
    int port;
    QPushButton *okBtn;
    QPushButton *cancelBtn;
    QLabel *ipLabel;
    QLabel *portLabel;

};

#endif // UDPCONFIGDIALOG_H
